#ifndef GLOBAL_CONFIG_H
#define GLOBAL_CONFIG_H

#define LED_BUILTIN_PIN 8
#define BTN_BOOT_PIN 9

#define SERIAL_BAUD_RATE 115200
#define ESP32C3_BOARD
// #define ESP32S3_BOARD

//----OLED引脚配置
#ifdef ESP32S3_BOARD
#define OLED_MOSI_PIN 37
#define OLED_SCK_PIN 38
#define OLED_CS_PIN 45
#define OLED_DC_PIN 35
#define OLED_RST_PIN 36
#endif

#ifdef ESP32C3_BOARD

#define OLED_CS_PIN 5
#define OLED_DC_PIN 6
#define OLED_RST_PIN 7
#define OLED_MOSI_PIN 8
#define OLED_SCK_PIN 9

#define SDCARD_CS_PIN  10
#define SDCARD_MOSI_PIN  20
#define SDCARD_SCK_PIN  21
#define SDCARD_MISO_PIN  4
#endif 


//红外引脚
#define PIR_PIN 4

// LUA APP PATH
#define LUA_APP_PATH "/apps"

// WIFI credentials
static const char* WIFI_SSID = "ZK";
static const char* WIFI_PASSWORD = "zk123456";

static const char* MQTT_SERVER = "192.168.1.100";
static const char* MQTT_PORT = "1883";
static const char* MQTT_CLIENT_ID = "esp32_zkos_demo";
static const char* MQTT_USER = "admin";
static const char* MQTT_PASSWORD = "admin123456";

static const char* MQTT_TOPIC_SUB = "esp32_zkos_demo/sub";
static const char* MQTT_TOPIC_PUB = "esp32_zkos_demo/pub";

// static const int WIFI_CONNECT_TYPE = 0; // 0 for WIFI_STA, 1 for WIFI_AP, 2 for WIFI_AP_STA


#endif 